export default {
  height: 'auto',
  calcHeight: 30,
  tip: false,
  searchShow: true,
  searchMenuSpan: 6,
  border: true,
  index: true,
  viewBtn: true,
  selection: true,
  dialogClickModal: false,
  column: [
    {
      label: "主键",
      prop: "id",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      hide: true
    },
    {
      label: "创建人",
      prop: "createUser",
      type: "select",
      dicUrl: "/api/blade-user/listAll",
      props: {
        label: "name",
        value: "id"
      },
      addDisplay: false,
      editDisplay: false,
    },

    {
      label: "创建时间",
      prop: "createTime",
      type: "input",
      addDisplay: false,
      editDisplay: false,
    },
    {
      label: "修改人",
      prop: "updateUser",
      type: "select",
      dicUrl: "/api/blade-user/listAll",
      props: {
        label: "name",
        value: "id"
      },
      addDisplay: false,
      editDisplay: false,
    },
    {
      label: "修改时间",
      prop: "updateTime",
      type: "input",
      addDisplay: false,
      editDisplay: false,
    },

    {
      label: "名称",
      prop: "name",
      type: "input",
    },
    {
      label: "状态",
      prop: "status",
      type: "select",
      dicUrl: "/api/blade-system/dict-biz/dictionary?code=enable_disable",
      props: {
        label: "dictValue",
        value: "dictKey"
      },
      search: true,
      addDisplay: false,
      editDisplay: false,
      dataType: "number",
      slot: true,
      rules: [{
        required: true,
        message: "请选择类别",
        trigger: "blur"
      }]
    },
    {
      label: "类别",
      prop: "category",
      type: "select",
      dicUrl: "/api/blade-system/dict-biz/dictionary?code=Information_type",
      props: {
        label: "dictValue",
        value: "dictKey"
      },
      dataType: "number",
      search: true,
      slot: true,
      rules: [{
        required: true,
        message: "请选择类别",
        trigger: "blur"
      }]
    },
    {
      label: "封面",
      prop: "coverUrl",
      type: 'upload',
      listType: 'picture-img',
      dataType: 'string',
      action: '/api/blade-resource/oss/endpoint/put-file',
      propsHttp: {
        res: 'data',
        url: 'link',
      },
    },
    {
      label: "简介",
      prop: "introduction",
      type: "input",
    },
    {
      label: "详情",
      prop: "details",
      component: 'AvueUeditor',
      options: {
        action: '/api/blade-resource/oss/endpoint/put-file',
        props: {
          res: "data",
          url: "link",
        }
      },
      hide: true,
      minRows: 6,
      span: 24,
    },
  ]
}
